#ifndef	__APP_MAINWORK_H
#define	__APP_MAINWORK_H

#include "stm32g0xx_hal.h"


#define	PUSHMOTOR_BACKUP_CMD		(0x0C)
#define	PUSHMOTOR_FORWARD_CMD		(0x0D)
#define	PUSHMOTOR_STOP_CMD			(0x0A)


#define	PUSHMOTER_BACKUP_LIMIT		KEY_TACT
#define	PUSHMOTER_FORWARD_LIMIT		KEY_LIMIT


#define	PUSHMOTOR_SPEED_FAST		MOTOR_2_SPEED_FAST
#define	PUSHMOTOR_SPEED_SLOW		MOTOR_2_SPEED_SLOW

#define	PUSHMOTOR_BACKUP			APP_Motor_2_BackUp
#define	PUSHMOTOR_FORWARD			APP_Motor_2_Forward
#define	PUSHMOTOR_STOP				APP_Motor_2_Stop

#define	SOLEMOTOR_BACKUP			APP_Motor_1_BackUp
#define	SOLEMOTOR_FORWARD			APP_Motor_1_Forward
#define	SOLEMOTOR_STOP				APP_Motor_1_Stop

#define	SOLEMOTOR_SPEED_FAST		MOTOR_1_SPEED_FAST
#define	SOLEMOTOR_SPEED_SLOW		MOTOR_1_SPEED_SLOW

#define	PRESSVALUE_LIMIT			(1800)
#define	PRESSVALUE_LOW_LIMIT		(500)


#define	READY_WORK					(1)

#define STOP_WORK					(0)
#define START_WORK					(1)


#define	MAINWORK_READY				(0)
#define	MAINWORK_INHALE				(1)
#define	MAINWORK_PUSH_PIN			(2)
#define	MAINWORK_PUSH_LIQUID		(3)
#define	MAINWORK_NARROWING			(4)
#define	MAINWORK_DEFLATE			(5)
#define	MAINWORK_OVER				(6)

void APP_MainWork(void);

#endif

